authApp.value('page','Material_datafill'); 
authApp.controller("dataFillController",function($scope,$http,$cookieStore,$cookies,$getQueryString){
	$scope.schoolId=$getQueryString("pid");
	$scope.list = []
	//alert($getQueryString("pid"));
	$scope.type = $getQueryString("type")
	$scope.queryMain=function(){
		$http({
			method:'get',
			url:apis.setAuthExportIdentity_getAllTable,
			params:{school_id: $scope.schoolId},
			
		}).success(function(response){
			if(response.code=="000000"){
				console.log(response.data)
				$scope.list = response.data[$scope.type]
			}else{
				alert(response.errorMsg);
			}
		}).error(function(){
			alert("网络出现故障，请确认网络是否连接");
		})
	}
	$scope.queryMain()
	$scope.turnTo=function(schoolId,schoolName){
        location.href="/views/investiga/table6.html?schoolId="+schoolId+"&schoolName="+encodeURIComponent(encodeURIComponent(schoolName));
    }
})